package com.itmayiedu.service;

import com.itmayiedu.hystrix.HystrixClientService;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * *******************************************
 *
 * @description:
 * @author: by jgl
 * @date: 2018/2/4 0004 下午 4:20
 * @version:1.0 *******************************************
 */
@FeignClient(value = "service-hi",fallback = HystrixClientService.class)//注解 value值为注册到注册中心提供服务的应用名称
public interface FeignService {

    @RequestMapping("/hi") //添加提供服务应用的注解路径
    String hi(@RequestParam("name") String name);
}
